/*多分辨率设定rem设定*/
html {
  font-size: 25px;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

.fff {
  background-color: #ffffff;
}

.f7 {
  background-color: #f7f7f7;
}

html,
body,
div,
ul,
ol,
li,
dl,
dt,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
form,
p,
blockquote,
fieldset,
input {
  padding: 0;
  margin: 0;
}
h1,
h2,
h3,
h4,
h5,
h6,
pre,
code,
address,
caption,
cite,
code,
em,
strong,
table,
th,
td {
  font-size: 1em;
  font-style: normal;
  font-weight: normal;
}
ul,
ol {
  list-style: none outside none;
}
fieldset,
img {
  border: medium none;
  vertical-align: middle;
}
caption,
th {
  text-align: left;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
i,
cite,
em {
  font-style: normal;
}
input,
button,
select,
textarea {
  outline: none;
}
a {
  text-decoration: none;
}
body {
  background: #ffffff;
}

/* 单换行 */
.ellipsis-1 {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  word-break: break-all;
}

/* 双换行 */
.ellipsis-2 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* 弹性布局 */
.flex {
  display: flex;
}
.basis-xs {
  flex-basis: 20%;
}
.basis-sm {
  flex-basis: 40%;
}
.basis-df {
  flex-basis: 50%;
}
.basis-lg {
  flex-basis: 60%;
}
.basis-xl {
  flex-basis: 80%;
}
.flex-sub {
  flex: 1;
}
.flex-twice {
  flex: 2;
}
.flex-treble {
  flex: 3;
}
.flex-direction {
  flex-direction: column;
}
.flex-wrap {
  flex-wrap: wrap;
}
.align-start {
  align-items: flex-start;
}
.align-end {
  align-items: flex-end;
}
.align-center {
  align-items: center;
}
.align-stretch {
  align-items: stretch;
}
.self-start {
  align-self: flex-start;
}
.self-center {
  align-self: flex-center;
}
.self-end {
  align-self: flex-end;
}
.self-stretch {
  align-self: stretch;
}
.align-stretch {
  align-items: stretch;
}
.align-baseline {
  align-items: baseline;
}
.justify-start {
  justify-content: flex-start;
}
.justify-end {
  justify-content: flex-end;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.justify-around {
  justify-content: space-around;
}

/* 数字前特殊字符 */
.text-price::before {
  content: '¥';
  font-size: 75%;
  margin-right: 3px;
  font-weight: normal !important;
}

.text-number::before {
  content: 'x';
  font-size: 80%;
  margin-right: 3px;
  font-weight: normal !important;
}

/* padding和margin */
.margin-0 {
  margin: 0;
}
.margin-xs {
  margin: 10px;
}
.margin-sm {
  margin: 20px;
}
.margin {
  margin: 30px;
}
.margin-lg {
  margin: 40px;
}
.margin-xl {
  margin: 50px;
}
.margin-top-xs {
  margin-top: 10px;
}
.margin-top-sm {
  margin-top: 20px;
}
.margin-top {
  margin-top: 30px;
}
.margin-top-lg {
  margin-top: 40px;
}
.margin-top-xl {
  margin-top: 50px;
}
.margin-right-xs {
  margin-right: 10px;
}
.margin-right-sm {
  margin-right: 20px;
}
.margin-right {
  margin-right: 30px;
}
.margin-right-lg {
  margin-right: 40px;
}
.margin-right-xl {
  margin-right: 50px;
}
.margin-bottom-xs {
  margin-bottom: 10px;
}
.margin-bottom-sm {
  margin-bottom: 15px;
}
.margin-bottom {
  margin-bottom: 20px;
}
.margin-bottom-lg {
  margin-bottom: 40px;
}
.margin-bottom-xl {
  margin-bottom: 50px;
}
.margin-left-xs {
  margin-left: 10px;
}
.margin-left-sm {
  margin-left: 20px;
}
.margin-left {
  margin-left: 30px;
}
.margin-left-lg {
  margin-left: 40px;
}
.margin-left-xl {
  margin-left: 50px;
}
.margin-lr-xs {
  margin-left: 10px;
  margin-right: 10px;
}
.margin-lr-sm {
  margin-left: 20px;
  margin-right: 20px;
}
.margin-lr {
  margin-left: 30px;
  margin-right: 30px;
}
.margin-lr-lg {
  margin-left: 40px;
  margin-right: 40px;
}
.margin-lr-xl {
  margin-left: 50px;
  margin-right: 50px;
}
.margin-tb-xs {
  margin-top: 10px;
  margin-bottom: 10px;
}
.margin-tb-sm {
  margin-top: 20px;
  margin-bottom: 20px;
}
.margin-tb {
  margin-top: 30px;
  margin-bottom: 30px;
}
.margin-tb-lg {
  margin-top: 40px;
  margin-bottom: 40px;
}
.margin-tb-xl {
  margin-top: 50px;
  margin-bottom: 50px;
}
.padding-0 {
  padding: 0;
}
.padding-xs {
  padding: 10px;
}
.padding-sm {
  padding: 20px;
}
.padding {
  padding: 30px;
}
.padding-lg {
  padding: 40px;
}
.padding-xl {
  padding: 50px;
}
.padding-top-xs {
  padding-top: 10px;
}
.padding-top-sm {
  padding-top: 20px;
}
.padding-top {
  padding-top: 30px;
}
.padding-top-lg {
  padding-top: 40px;
}
.padding-top-xl {
  padding-top: 50px;
}
.padding-right-xs {
  padding-right: 10px;
}
.padding-right-sm {
  padding-right: 20px;
}
.padding-right {
  padding-right: 30px;
}
.padding-right-lg {
  padding-right: 40px;
}
.padding-right-xl {
  padding-right: 50px;
}
.padding-bottom-0 {
  padding-bottom: 0px !important;
}
.padding-bottom-xs {
  padding-bottom: 10px;
}
.padding-bottom-sm {
  padding-bottom: 20px;
}
.padding-bottom {
  padding-bottom: 30px;
}
.padding-bottom-lg {
  padding-bottom: 40px;
}
.padding-bottom-xl {
  padding-bottom: 50px;
}
.padding-left-xs {
  padding-left: 10px;
}
.padding-left-sm {
  padding-left: 20px;
}
.padding-left {
  padding-left: 30px;
}
.padding-left-lg {
  padding-left: 40px;
}
.padding-left-xl {
  padding-left: 50px;
}
.padding-lr-xs {
  padding-left: 10px;
  padding-right: 10px;
}
.padding-lr-sm {
  padding-left: 20px;
  padding-right: 20px;
}
.padding-lr {
  padding-left: 30px;
  padding-right: 30px;
}
.padding-lr-lg {
  padding-left: 40px;
  padding-right: 40px;
}
.padding-lr-xl {
  padding-left: 50px;
  padding-right: 50px;
}
.padding-tb-xs {
  padding-top: 10px;
  padding-bottom: 10px;
}
.padding-tb-sm {
  padding-top: 20px;
  padding-bottom: 20px;
}
.padding-tb {
  padding-top: 30px;
  padding-bottom: 30px;
}
.padding-tb-lg {
  padding-top: 40px;
  padding-bottom: 40px;
}
.padding-tb-xl {
  padding-top: 50px;
  padding-bottom: 50px;
}

/* 页面边框 */

.dashed,
.dashed-bottom,
.dashed-left,
.dashed-right,
.dashed-top,
.solid,
.solid-bottom,
.solid-left,
.solid-right,
.solid-top,
.solids,
.solids-bottom,
.solids-left,
.solids-right,
.solids-top {
  position: relative;
}
.dashed-bottom::after,
.dashed-left::after,
.dashed-right::after,
.dashed-top::after,
.dashed::after,
.solid-bottom::after,
.solid-left::after,
.solid-right::after,
.solid-top::after,
.solid::after,
.solids-bottom::after,
.solids-left::after,
.solids-right::after,
.solids-top::after,
.solids::after {
  content: ' ';
  width: 200%;
  height: 200%;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: inherit;
  transform: scale(0.5);
  transform-origin: 0 0;
  pointer-events: none;
  box-sizing: border-box;
}
.solid::after {
  border: 1px solid rgba(0, 0, 0, 0.1);
}
.solid-top::after {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.solid-right::after {
  border-right: 1px solid rgba(0, 0, 0, 0.1);
}
.solid-bottom::after {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.solid-left::after {
  border-left: 1px solid rgba(0, 0, 0, 0.1);
}
.solids::after {
  border: 4px solid #eee;
}
.solids-top::after {
  border-top: 4px solid #eee;
}
.solids-right::after {
  border-right: 4px solid #eee;
}
.solids-bottom::after {
  border-bottom: 4px solid #eee;
}
.solids-left::after {
  border-left: 4px solid #eee;
}
.dashed::after {
  border: 1px dashed #ddd;
}
.dashed-top::after {
  border-top: 1px dashed #ddd;
}
.dashed-right::after {
  border-right: 1px dashed #ddd;
}
.dashed-bottom::after {
  border-bottom: 1px dashed #ddd;
}
.dashed-left::after {
  border-left: 1px dashed #ddd;
}

// 全局的checkbox
.checkbox /deep/ .van-checkbox__icon--checked,
.checkbox /deep/ .van-radio__icon--checked {
  .van-icon {
    background-color: $mainColor;
    border-color: $mainColor;
    &::before {
      transform: scale(0.8);
      -webkit-transform: scale(0.8);
      -moz-transform: scale(0.8);
      -ms-transform: scale(0.8);
      -o-transform: scale(0.8);
    }
  }
}

.header-fiexed {
  position: sticky;
  position: -webkit-sticky;
  top: 0;
  left: 0;
  z-index: 1000;
}

// // 全局base的样式
// .base-content {
//   /deep/ .van-icon.van-icon-arrow-left {
//     color: #333333 !important;
//   }

//   /deep/ .van-nav-bar__title {
//     color: #000000;
//     font-size: 15px;
//     font-weight: bold;
//   }
// }

.submit-btn {
  width: 100%;
  height: 44px;
  margin-top: 30px;
  background-color: #000000;
  color: #fbc491;
  font-size: 16px;
  &.van-button--disabled {
    opacity: 1;
    background-color: #f4f4f4;
    color: #666666;
  }
}
